#define _CRT_SECURE_NO_WARNINGS 1

#include"stack.h"

void test(Stack* ps)
{
	StackInit(ps);

	StackPush(ps, 1);
	StackPush(ps, 2);
	StackPush(ps, 3);
	StackPush(ps, 4);
	StackPush(ps, 5);


	while (ps->_top >= 0)
	{
		printf("%d ", StackTop(ps));
		StackPop(ps);
	}

	StackDestroy(ps);

	
}

int main()
{
	Stack s;

	test(&s);
	return 0;
}